<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.

  Copyright (c) [2024] Huawei Technologies Co.,Ltd.

  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.

  Copyright (c) [2024] Huawei Technologies Co.,Ltd.

  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.

  Copyright (c) [2024] Huawei Technologies Co.,Ltd.

  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<lv-alert lvType="info" lvClosable="false">
  <span [innerHTML]="'common_reuse_dm_port_rule_label' | i18n"></span>
</lv-alert>
<lv-form [formGroup]="formGroup" class="formGroup">
  <lv-form-item>
    <lv-form-label lvRequired>
      {{ 'common_role_label' | i18n }}
    </lv-form-label>
    <lv-form-control>
      <lv-radio-group formControlName="role">
        <lv-group lvGutter="16px">
          <lv-radio [lvValue]="dataMap.initRole.data.value" [lvDisabled]="disableRoleRadio.backup">{{
            'common_backup_label' | i18n
          }}</lv-radio>
          <lv-radio [lvValue]="dataMap.initRole.copy.value" [lvDisabled]="disableRoleRadio.replicate">{{
            'common_replicate_label' | i18n
          }}</lv-radio>
          <lv-radio [lvValue]="dataMap.initRole.dataManage.value" [lvDisabled]="disableRoleRadio.archive">{{
            'common_archive_label' | i18n
          }}</lv-radio>
        </lv-group>
      </lv-radio-group>
    </lv-form-control>
  </lv-form-item>
</lv-form>

<!-- 这个词条需要翻译 -->
<lv-group lvGutter="0.04rem" style="margin:16px 0">
    <span style="color:red">*</span>
    <span>{{'common_dataplane_port_label' | i18n}}</span>
</lv-group>

<lv-pro-table
  #dataTable
  [config]="tableConfig"
  [data]="tableData"
></lv-pro-table>
